<template>
  <vue-office-pdf :src="excel" class="pdf-calss" />
</template>

<script setup lang='ts'>
import { ref } from 'vue'
//引入VueOfficePdf组件
import VueOfficePdf from '@vue-office/pdf'
const props = defineProps({
  excel: {
    type: ArrayBuffer,
    default: null
  }
})
</script>
<style scoped lang='scss'>
.pdf-calss {
  height: calc(100vh - 60px);
}
</style>